﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom;
using System.Xml.Linq;

namespace CodeDomHelper.CodeDom
{

    [Serializable()]
    public class Cinclude : CDocRoot
    {

        public Cinclude()
            : this("", "")
        {

        }


        public Cinclude(string file)
            : this("", "")
        {

        }

        // <include file='' path='[@name=""]'/>
        public Cinclude(string file, string path)
            : base("include")
        {

            File = file;
            Path = path;

        }

        public string File { get; protected set; }
        public string Path { get; protected set; }

        internal override bool Unique { get { return false; } }

        internal override string Serialize
        {
            get
            {
                return string.Format(@"<include file='{0}' path='[@name=""{1}""]'/>", File, Path);
            }
        }
    }


}
